package net.sk.china.front.service.impl.system;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.sk.china.common.model.system.SystemStore;
import net.sk.china.front.dao.system.SystemStoreDao;
import net.sk.china.front.service.system.SystemStoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * SystemStoreServiceImpl 接口实现
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/13 10:10
 * +----------------------------------------------------------------------
 */
@Service
public class SystemStoreServiceImpl extends ServiceImpl<SystemStoreDao, SystemStore> implements SystemStoreService {

    @Resource
    private SystemStoreDao dao;

    /**
     * 详情
     * @param systemStore 基本参数
     * @return {@code SystemStore}
     */
    @Override
    public SystemStore getByCondition(SystemStore systemStore) {
        LambdaQueryWrapper<SystemStore> query = new LambdaQueryWrapper<>();
        query.setEntity(systemStore);

        return dao.selectOne(query);
    }
}
